package com.avcdata;

import org.apache.hadoop.hive.ql.exec.UDF;
import org.apache.hadoop.io.Text;

public final class TuoMin extends UDF {
    public Text evaluate(final Text s) {
        if (s == null) {
            return null;
        }
        String str = s.toString();
        str = str.substring(0, 1) + "***" + str.substring(str.length() - 1, str.length());
        return new Text(str);
    }
}
